package com.ored.userWeb;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;

/**
 * @Description:
 * @Author SGM
 * @Date 2020/3/16 15:11
 * @Version V1.0
 */
@Controller
public class DemoThymeleafController {

    @RequestMapping("/index")
    public String showInfo(Model model){
        model.addAttribute("msg", "Thymeleaf 第一个案例");
        model.addAttribute("key",new Date());
        return "index";
    }
}
